#include "LinkStack.h"
#include <iostream>

int main()
{
    LinkStack s;
    for(long i = 0;i < 20;i++)
    {
        s.Push((void*)(i + 1));
    }
    while(s.IsEmpty() == false)
    {
        std::cout<<*(int*)s.GetTop()<<" ";
        s.Pop();
    }
    std::cout<<std::endl;
    return 0;
}
